package com.bwie.controller;

import com.bwie.service.INetworkService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/district/index")
public class IndexController {
    @Resource
    INetworkService iNetworkService;
    /**
     * 测试熔断
     * @param pageInfoVo
     * @return
     */
    @PostMapping("/getNetworkList")
    public R getNetworkList(@RequestBody PageInfoVo pageInfoVo){
        return iNetworkService.getNetworkList(pageInfoVo);
    }

}
